package controller;

import gui.IndexUI;
import gui.RegisterUI;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class BtnShowRegisterAction implements ActionListener {

	private IndexUI gui;

	public BtnShowRegisterAction(IndexUI gui) {
		this.gui = gui;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		RegisterUI.getInstance().setVisible(true);
		this.gui.setVisible(false);
	}

}
